/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-27<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
package cn.cnsy123.bookwebsiteserver.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-27<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
@Entity
@Table(name = "SYS_ROLE_INFO")
public class SysUserRoleInfo {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "ROLE_ID")
    private Long roleId;
    
    @Column(name = "ROLE_NAME",length = 20)
    private String roleName;
    
    @Column(name = "ROLE_DESC",length = 200)
    private String roleDesc;
    
    @Column(name = "CREATE_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    private Date createTime;
    
    @Column(name = "IS_DELETED",length = 1)
    private Short deleteFlag;

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Short getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Short deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("\"SysUserRoleInfo\":{\"roleId\":");
        builder.append(roleId);
        builder.append(", \"roleName\":");
        builder.append(roleName);
        builder.append(", \"roleDesc\":");
        builder.append(roleDesc);
        builder.append(", \"createTime\":");
        builder.append(createTime);
        builder.append(", \"deleteFlag\":");
        builder.append(deleteFlag);
        builder.append("}");
        return builder.toString();
    }

    public SysUserRoleInfo() {
    }

    public SysUserRoleInfo(Long roleId, String roleName, String roleDesc, Date createTime, Short deleteFlag) {
        this.roleId = roleId;
        this.roleName = roleName;
        this.roleDesc = roleDesc;
        this.createTime = createTime;
        this.deleteFlag = deleteFlag;
    }
    
    
}
